﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Shared/DefaultMaster.master"
    AutoEventWireup="true" CodeBehind="LoginView.aspx.cs" Inherits="Churchtoolkit.Web.LoginView" %>

<asp:Content ID="Content1" ContentPlaceHolderID="DefaultContent" runat="server">
<center>
    <div style=" width:350px; padding-top:50px; padding-bottom:50px;">
    <table class="Details" cellspacing="0">
        <tr>
            <td colspan="5" class="header" align="center">
                Login
            </td>
        </tr>
        <tr>
            <td></td>
        </tr>
        <tr>
            <td class="label">
                <asp:Label runat="server" Text="Email" AssociatedControlID="txtMail"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtMail" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="vldreqTxtMail" runat="server" ErrorMessage="0001" Text="*" ControlToValidate="txtMail"
                    Display="Dynamic">
                </asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator runat="server" ControlToValidate="txtMail" ErrorMessage='0003'
                    Text="*" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" Display="Dynamic">
                </asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td class="label">
                <asp:Label runat="server" Text="Password" AssociatedControlID="txtPass"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtPass" runat="server" TextMode="Password"></asp:TextBox>
                <asp:RequiredFieldValidator id="vldreqTxtPass" runat="server" ErrorMessage="0001" Text="*" ControlToValidate="txtPass"
                    Display="Dynamic"></asp:RequiredFieldValidator>
                <asp:CustomValidator ErrorMessage='0004' Text="*" runat="server" OnServerValidate="txtPassword_InvalidMailOrPassword"
                    Display="Dynamic"></asp:CustomValidator>
                <asp:CustomValidator ErrorMessage='0005' Text="*" runat="server" OnServerValidate="txtPassword_NotActiveMember"
                    Display="Dynamic"></asp:CustomValidator>
            </td>
        </tr>
        <tr>
            <td colspan="2" align="left">
                <table width="100%">
                    <tr>
                        <td>
                            <asp:HyperLink runat="server" ID="hplForgotYourPassword">Forget Your Password</asp:HyperLink><br />
                            <asp:HyperLink ID="hplRegisterNow" runat="server">Register Now</asp:HyperLink>
                        </td>
                        <td align="right" valign="top">
                            <asp:Button ID="btnLogin" runat="server" OnClick="btnlogin_Click" Text="LogIn"></asp:Button>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td colspan="2" align="left" class="footer">
                <asp:ValidationSummary runat="server" />
            </td>
        </tr>
    </table>
    </div>
</center>
</asp:Content>
